<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<form method="post" class="js-ajax-form margin-top-20" action="{:url('express/postData')}">
			<div class="row">
				<table class="table col-sm-offset-1" style="max-width: 85%">
					<thead>
					<tr>
						<th>Code</th>
						<th>Name</th>
						<th>CustomerName</th>
						<th>CustomerPwd</th>
						<th>MonthCode</th>
						<th>SendSite</th>
						<th>SendStaff</th>
						<th>{:lang('ACTIONS')}</th>
					</tr>
					</thead>
					<tbody>
					<volist name="list" id="vo">
						<tr>
							<td><input type="text" class="form-control" name="data[{$key}][Code]" value="{$vo.Code|default=''}"></td>
							<td><input type="text" class="form-control" name="data[{$key}][Name]" value="{$vo.Name|default=''}"></td>
							<td><input type="text" class="form-control" name="data[{$key}][CustomerName]" value="{$vo.CustomerName|default=''}"></td>
							<td><input type="text" class="form-control" name="data[{$key}][CustomerPwd]" value="{$vo.CustomerPwd|default=''}"></td>
							<td><input type="text" class="form-control" name="data[{$key}][MonthCode]" value="{$vo.MonthCode|default=''}"></td>
							<td><input type="text" class="form-control" name="data[{$key}][SendSite]" value="{$vo.SendSite|default=''}"></td>
							<td><input type="text" class="form-control" name="data[{$key}][SendStaff]" value="{$vo.SendStaff|default=''}"></td>
							<td><label name="删除" class="btn btn-sm btn-danger" onclick="deltr(this)">删除</label></td>
						</tr>
					</volist>
					<tr>
						<td><input type="text" class="form-control" name="datas[Code]" value=""></td>
						<td><input type="text" class="form-control" name="datas[Name]" value=""></td>
						<td><input type="text" class="form-control" name="datas[CustomerName]" value=""></td>
						<td><input type="text" class="form-control" name="datas[CustomerPwd]" value=""></td>
						<td><input type="text" class="form-control" name="datas[MonthCode]" value=""></td>
						<td><input type="text" class="form-control" name="datas[SendSite]" value=""></td>
						<td><input type="text" class="form-control" name="datas[SendStaff]" value=""></td>
						<td><label name="删除" class="btn btn-sm btn-danger" onclick="deltr(this)">删除</label></td>
					</tr>
					</tbody>
				</table>
			</div>
			<div class="col-sm-offset-1">
				<p class="help-block">请严格按照快递鸟电子面单客户单号的要求填写该表单，若无要求，不要填写多余输入框</p>
			</div>
			<div class="table-actions">
				<button class="btn btn-small btn-primary js-ajax-submit col-sm-offset-1" type="submit">提交</button>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script>
		function deltr(obj){
			var tr = obj.parentNode.parentNode;
			tr.parentNode.removeChild(tr);
		}
	</script>
</body>
</html>